/*
 * XML Type:  EmailMessageSet
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.EmailMessageSet
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML EmailMessageSet(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class EmailMessageSetImpl extends net.ofx.types.x2003.x04.impl.AbstractMessageSetImpl implements net.ofx.types.x2003.x04.EmailMessageSet
{
    
    public EmailMessageSetImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EMAILMSGSETV1$0 = 
        new javax.xml.namespace.QName("", "EMAILMSGSETV1");
    
    
    /**
     * Gets the "EMAILMSGSETV1" element
     */
    public net.ofx.types.x2003.x04.EmailMessageSetV1 getEMAILMSGSETV1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailMessageSetV1 target = null;
            target = (net.ofx.types.x2003.x04.EmailMessageSetV1)get_store().find_element_user(EMAILMSGSETV1$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "EMAILMSGSETV1" element
     */
    public void setEMAILMSGSETV1(net.ofx.types.x2003.x04.EmailMessageSetV1 emailmsgsetv1)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailMessageSetV1 target = null;
            target = (net.ofx.types.x2003.x04.EmailMessageSetV1)get_store().find_element_user(EMAILMSGSETV1$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.EmailMessageSetV1)get_store().add_element_user(EMAILMSGSETV1$0);
            }
            target.set(emailmsgsetv1);
        }
    }
    
    /**
     * Appends and returns a new empty "EMAILMSGSETV1" element
     */
    public net.ofx.types.x2003.x04.EmailMessageSetV1 addNewEMAILMSGSETV1()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.EmailMessageSetV1 target = null;
            target = (net.ofx.types.x2003.x04.EmailMessageSetV1)get_store().add_element_user(EMAILMSGSETV1$0);
            return target;
        }
    }
}
